package com.yonyou.iuap.jxzy.ref.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yonyou.iuap.ref.model.RefViewModelVO;

/**
 * 组织列表参照
 * @author WXF
 *
 */
@Controller
@RequestMapping(value="/assetOrgRef")
public class AssetOrgRefModel extends AbstractBillRefModel {

	@Override
	public String[] getStrFieldCode() {
		return new String[]{"code","name"};
	}

	@Override
	public String getTableName() {
		return " org_assetorg ";
	}

	@Override
	public String[] getStrFieldName() {
		return new String[]{"编码","名称"};
	}

	@Override
	public String getRefCode() {
		return "code";
	}

	@Override
	public String getRefName() {
		return "name";
	}

	@Override
	public String getRefID() {
		return "pk_org";
	}

	@Override
	public String getWhereSQL(RefViewModelVO refModel) {
		return " and dr = 0 ";
	}

}
